package org.vy.search;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.vy.search.base.SearchQueryManager;

public class SearchAction extends Action {
	public ActionForward execute(ActionMapping mapping, ActionForm actionForm,
			HttpServletRequest request, HttpServletResponse response) {
		try {
			SearchForm srchForm = (SearchForm) actionForm;
			if(srchForm.getMember() != null){
				SearchQueryManager.getInstance().createMemberSearchQuery();
			}
			
			
			
			

			return mapping.findForward("success");

		} catch (Exception e) {
			e.printStackTrace();
		}
		return mapping.findForward("failure");
	}
}
